Skip to content

feat(contracts): seed the pattern registry and check headings - #296

Merged
edithatogo merged 3 commits into
mainfrom
pattern-registry-contracts-pr2
Aug 11, 2026
Merged

feat(contracts): seed the pattern registry and check headings#296
edithatogo merged 3 commits into
mainfrom
pattern-registry-contracts-pr2

Conversation

@edithatogo

Copy link
Copy Markdown
Owner

Summary

  • Seed src/document-intelligence/patterns.json for all 40 core patterns (id, severity, domain applicability, mode carve-outs, trigger terms, false-positive guards). Pattern 27 stays must_preserve.
  • Check the registry against src/modules/SKILL_CORE_PATTERNS.md headings, body severities, severity-table IDs, and the frontmatter patterns count. Duplicate Low-tier IDs now fail npm run validate:contracts.
  • Leave compile-skill.js alone in this pass. Pattern bodies stay in Markdown.

Test plan

  • node --test test/skill-contracts.test.js
  • node scripts/validate-skill-contracts.js
  • CI test, validate-skill, and portable-spec green

Refs #278

Keep the 40 pattern bodies in Markdown and fail CI when headings, severity-table IDs, or the frontmatter count drift from patterns.json.

Refs #278

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI lite review requested due to automatic review settings August 11, 2026 19:33
@cursor

cursor Bot commented Aug 11, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

60217257 and others added 2 commits August 12, 2026 08:10
Raise patch coverage for heading, severity-table, and missing-registry errors so the Codecov patch check can pass.

Co-authored-by: Cursor <cursoragent@cursor.com>
@edithatogo
edithatogo merged commit 8815fbc into main Aug 11, 2026
10 checks passed
@edithatogo
edithatogo deleted the pattern-registry-contracts-pr2 branch August 11, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants